package jvmtest; /**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2022/01/18/10:38
 * @Description:
 */

import java.util.ArrayList;
import java.util.List;

/**
 *@ClassName Main
 *@Description
 *@Author 王琛
 *@Date 2022/1/18 10:38
 @Version 1.0
 */
public class HeapOOM {

static class OOMObject{

}
    public static void main(String[] args) {
        List<OOMObject> list = new ArrayList<OOMObject>();
        while (true) {
            list.add(new OOMObject());
        }
    }
}
